import { Injectable } from '@nestjs/common';
import { UserService } from 'src/modules/user/user.service';

@Injectable()
export class AuthService {
  constructor(private readonly userService: UserService) {}

  async validateUser(token: string): Promise<Boolean> {
    const isAuth = this.userService.findOneByToken(token)
    return isAuth ? true : false
  }
}